/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.TakeStock;
import com.yami.shop.bean.vo.TakeStockVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 *
 *
 * @author Citrus
 * @date 2021-09-15 11:18:33
 */
public interface TakeStockExcelService extends IService<TakeStock> {


    /**
     * 下载模板
     * @param response
     */
    void downLoadModel(HttpServletResponse response);

    /**
     * 导入盘点商品
     * @param file
     * @param shopId
     * @param takeStockId
     * @return
     * @throws Exception
     */
    Object parseFile(MultipartFile file, Long shopId, Long takeStockId) throws Exception;

    /**
     * 导出盘点商品
     * @param takeStockId
     * @param response
     */
    void exportTakeStockProd(Long takeStockId, HttpServletResponse response);

    /**
     * 盘点，商品创建excel
     * @param takeStocks
     * @param isModel
     * @param response
     */
    void createExcel(List<TakeStockVO> takeStocks, Boolean isModel, HttpServletResponse response);
}
